package com.model.pojo;

import org.springframework.stereotype.Component;

@Component
public class Commodity {
    private Integer comId;
    private String comName;
    private Integer comInventory;
    private String comUnit;

    public Commodity() {
    }

    public Commodity(Integer comId, String comName, Integer comInventory, String comUnit) {
        this.comId = comId;
        this.comName = comName;
        this.comInventory = comInventory;
        this.comUnit = comUnit;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public Integer getComInventory() {
        return comInventory;
    }

    public void setComInventory(Integer comInventory) {
        this.comInventory = comInventory;
    }

    public String getComUnit() {
        return comUnit;
    }

    public void setComUnit(String comUnit) {
        this.comUnit = comUnit;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "comId=" + comId +
                ", comName='" + comName + '\'' +
                ", comInventory=" + comInventory +
                ", comUnit='" + comUnit + '\'' +
                '}';
    }
}
